<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<title>我的信息</title>
<%@include file="/common/wxCommon.jspf"%>
<body ontouchstart>
	<div class="weui-row weui-no-gutter header-bg">
		<div class="weui-col-33">
			<img class="weui_media_appmsg_thumb head"
				src="${weixinUser.headImgUrl }" alt="">
		</div>
		<div class="weui-col-66">
			<div class="weui-row nickname">
				昵称:<span class="gray">${weixinUser.nickname  }</span>
			</div>
			<div class="weui-row nickname_edit">
				<a href="${ctx }/weixin/user/editMyinfo.shtml">
					<img class="weui_media_appmsg_thumb" src="${ctx }/images/weixin/edit.png" alt="">
				</a>
			</div>
		</div>
	</div>
	<div class="weui_cells mg0">
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">姓&emsp;&emsp;名:</label>
			</div>
			<div class="weui_cell_bd gray">${weixinUser.name }</div>
		</div>
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">性&emsp;&emsp;别:</label>
			</div>
			<div class="weui_cell_bd gray">${weixinUser.sex == 0 ? '未知': (weixinUser.sex == 1 ? '男' : '女')}</div>
		</div>
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">年&emsp;&emsp;龄:</label>
			</div>
			<div class="weui_cell_bd gray">${weixinUser.age }</div>
		</div>
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">政治面貌:</label>
			</div>
			<div class="weui_cell_bd gray">
			<c:forEach items="${politicalList }" var="record">
				<c:if test="${record.value eq weixinUser.political }">${record.label }</c:if>
			</c:forEach>
			</div>
		</div>
		<c:if test="${weixinUser.political eq 0 || weixinUser.political eq 1 }">
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">组织关系<br/>所属单位:</label>
			</div>
			<div class="weui_cell_bd gray">${weixinUser.unitOrg }</div>
		</div>
		</c:if>
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">联系方式:</label>
			</div>
			<div class="weui_cell_bd gray">${weixinUser.mobile }</div>
		</div>
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">电子邮件:</label>
			</div>
			<div class="weui_cell_bd gray">${weixinUser.email }</div>
		</div>
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">兴趣爱好:</label>
			</div>
			<div class="weui_cell_bd gray">${weixinUser.interest}</div>
		</div>
		<div class="weui_cell">
			<div class="weui_cell_hd">
				<label class="weui_label">所属地区:</label>
			</div>
			<div class="weui_cell_bd gray">${weixinUser.provinceName} ${weixinUser.cityName} ${weixinUser.areaName}</div>
		</div>
	</div>
	<c:if test="${empty weixinUser.name }">
	<script type="text/javascript">
		$(function() {
			$(document).click(function(){
				$.closeNotification();
			});
			setTimeout(function(){
				$.noti({
			        title: "提醒",
			        text: "亲，还等什么！完善信息享受会员待遇，送50积分、开通积分兑换通道",
			        media: "<i class='weui_icon_info_circle'></i>",
			        time: 8000,
			        onClick: function(data) {
			            location.href = "${ctx }/weixin/user/editMyinfo.shtml";
			        }
			    });
			},1000);
		});
	</script>
	</c:if>
</body>
</html>